package service;

import java.util.List;

import dao.StudentInfoDao;
import entity.StudentInfo;

public class StudentInfoService {

	StudentInfoDao studentInfoDao = new StudentInfoDao();

	public List<StudentInfo> selectAll() {
		return studentInfoDao.selectAll();
	}

	public StudentInfo getStudentInfoBySid(int sid) {
		return studentInfoDao.getStudentInfoBySid(sid);
	}

	public int updateStu(StudentInfo stu) {
		return studentInfoDao.updateStu(stu);
	}

	public int delStuBySid(int sid) {
		return studentInfoDao.delStuBySid(sid);
	}
}
